﻿namespace MicroCloud.Utils
{
    /// <summary>
    /// 表示Ajax结果类型的枚举
    /// </summary>
    [Description("Ajax结果类型")]
    public enum AjaxResultType
    {
        #region 2XX
        /// <summary>
        /// 成功
        /// </summary>
        [Description("成功")]
        Success = 200,

        #endregion

        #region 4XX
        /// <summary>
        /// 错误
        /// </summary>
        [Description("错误")]
        Error = 400,

        /// <summary>
        /// 未登录
        /// </summary>
        [Description("未登录")]
        Unauthorized = 401,

        /// <summary>
        /// 已登录但权限不足
        /// </summary>
        [Description("已登录但权限不足")]
        Forbidden = 403,

        /// <summary>
        /// 资源未找到
        /// </summary>
        [Description("资源未找到")]
        NotFound = 404,

        /// <summary>
        /// 不允许
        /// </summary>
        [Description("不允许")]
        NotAllowed = 405,

        /// <summary>
        /// 不支持
        /// </summary>
        [Description("不支持")]
        Unsupported = 415,
   
        /// <summary>
        /// 资源被锁定
        /// </summary>
        [Description("资源被锁定")]
        Locked = 423,

        #endregion

        #region 5XX
        /// <summary>
        /// 服务器内部错误
        /// </summary>
        [Description("服务器内部错误")]
        InternalError = 500,
     
        /// <summary>
        /// 功能未实现
        /// </summary>
        [Description("功能未实现")]
        NotImplemented = 501,

        #endregion

    }

}
